<template>
	<view class="btn-contaainer">
		<button class="nav-btn" @click="gotoPage('/pages/index/index')">
			前往登录页
		</button>
		<navigator url="/pages/CityDiscovery/CityDiscovery">
			<button class="nav-btn">城市探索
			</button>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			gotoPage(url) {
				uni.navigateTo({
					url: url,
					fail: (err) => {
						console.log("跳转失败：", err);
					}
				});
			}
		}
	};
</script>

<style>

</style>